﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Admin/Admin.master" AutoEventWireup="true" CodeFile="Payments.aspx.cs" Inherits="Manager_Payments_Payments" %>
<%@ Register Src="~/Controls/Collection/Payments.ascx" TagName="PaymentsMB" TagPrefix="UI"  %>
<%@ Register Src="~/Controls/Collection/AmortizationSchedule.ascx" TagName="AmortizationSchedule" TagPrefix="UI"  %>
<%@ Register Src="~/Controls/Collection/PaymentsSummary.ascx" TagName="PaymentsSummary" TagPrefix="UI"  %>
<%@ Register Src="~/Controls/Collection/ChargesByState.ascx" TagName="ChargesByState" TagPrefix="UI"  %>
<%@ Register Src="~/Controls/Collection/PaymentTransactions.ascx" TagName="PaymentTransactions" TagPrefix="UI"  %>
<%@ Register Src="~/Controls/Collection/PaymentsInput.ascx" TagName="PaymentsInput" TagPrefix="UI"  %>


<asp:Content ID="Payment" ContentPlaceHolderID="AC" Runat="Server">
<style>
cool\:tip{behavior: url(/Include/HTC/cooltip_js.htc)}
</style>
<script>
	function paymentHistory(el, id, fieldName,tableName) {
		event.cancelBubble = true;
		//		alert("PaymentID:" + el.alt);

		//		el.coolTip = "PaymentID:" + paymentID + ",FieldName:" + fieldName;
		var ret = WS(CO("GetColumnHistoryTable"), id, null, null, tableName, fieldName);
		if (showSOAPError(ret)) return false;
		el.coolTip = ret.value;
		el.fireEvent("onmouseover", event);
	}
	function statusHistory(el, id,tableName) {
		event.cancelBubble = true;
		var ret = WS(CO("GetStatusHistory"), id, null, null, tableName);
		if (showSOAPError(ret)) return false;
		var html = ret.value.match(/<div>([\s\S]+)<\/div>/)[1];
		//		$J.bubbleTip({ html: html, element: el });

		el.coolTip = ret.value;
		el.fireEvent("onmouseover", event);
	}
</script>
<DIV id="divRegHist" style="display:none">
<TABLE datasrc="#xmlReqHist" style="FONT: statusbar; BORDER-COLLAPSE: collapse" border="1" bordercolor="black" onreadystatechange="if(document.body.funcResize)document.body.funcResize()" ID="Table1">
	<THEAD><TR><TH>Value</TH><TH>When</TH><TH>Who</TH></TR></THEAD>
	<TR>
		<TD nowrap><SPAN datafld="Value"></SPAN></TD>
		<TD nowrap><SPAN datafld="When"></SPAN></TD>
		<TD nowrap><SPAN datafld="Who"></SPAN></TD>
	</TR>
</TABLE>
<XML id="xmlReqHist">[xml]</XML>
</DIV>
<fieldset style="display:inline"><legend><label>Payments Summary</label></legend>
<UI:PaymentsSummary ID="PaymentsSummary" runat="server" />
</fieldset>
<br />
<fieldset style="display:inline"><legend><label>Payments</label></legend>
<UI:PaymentsMB ID="PmtsMB" runat="server" />
</fieldset>
<br />
<fieldset style="display:inline"><legend><label>Payment Transactions</label></legend>
<UI:PaymentTransactions ID="PaymentTransactions" runat="server" />
</fieldset>
<br />
<fieldset style="display:inline"><legend><label>Payment Inputs</label></legend>
<UI:PaymentsInput ID="PaymentsInput" runat="server" />
</fieldset>
<br />
<UI:AmortizationSchedule ID="AmrtSched" runat="server" />
<fieldset style="display:inline"><legend><label>State Charges</label></legend>
<UI:ChargesByState ID="ChargesByState" runat="server" />
</fieldset>

</asp:Content>

